home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / PCI Driver Development Kit / • Samples / Driver Samples / Video samples / GDX 950717 / GDX / GraphicsCoreUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-20  |  1.4 KB  |  43 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        GraphicsCoreUtils.h
  3.  
  4.     Contains:    Declarations for 'utility' routines that portions of the GDX model (core, OSS, HAL)
  5.                 might want to make use of.
  6.  
  7.     Written by:    Sean Williams, Kevin Williams
  8.  
  9.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <2>     7/17/95    SW        Added declaration for GraphicsUtil GetDefaultGammaTableID()
  14.          <1>     4/15/95    SW        First Checked In
  15.  
  16. */
  17.  
  18. #ifndef __GRAPHICSCOREUTILS__
  19. #define __GRAPHICSCOREUTILS__
  20. #include "GraphicsPriv.h"
  21.  
  22. #include <Types.h>
  23. #include <Video.h>
  24.  
  25.  
  26. // The following are prototypes for utility functions that the Core uses.
  27.  
  28. GDXErr GraphicsUtilCheckSetEntry(const VDSetEntryRecord *setEntry, UInt32 bitsPerPixel,
  29.         SInt16 *startPosition, SInt16 *numberOfEntries, Boolean *sequential);
  30.  
  31. GDXErr GraphicsUtilSetEntries(const VDSetEntryRecord *setEntry, const GammaTbl *gamma, 
  32.         DepthMode depthMode, UInt32 bitsPerPixel, Boolean luminanceMapping, Boolean directColor);
  33.         
  34. GDXErr GraphicsUtilBlackToWhiteRamp(const GammaTbl *gamma, DepthMode depthMode,
  35.         UInt32 bitsPerPixel, Boolean luminanceMapping, Boolean directColor);
  36.         
  37. GDXErr GraphicsUtilGetDefaultGammaTableID(DisplayCode displayCode, GammaTableID *gammaTableID);
  38.  
  39. GDXErr GraphicsUtilMapSenseCodesToDisplayCode(RawSenseCode rawSenseCode,
  40.         ExtendedSenseCode extendedSenseCode, DisplayCode *displayCode);
  41.  
  42. #endif    // __GRAPHICSCOREUTILS__
  43.